﻿using Hotel.WCF.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Hotel.Models;

namespace Hotel.WCF.ImpServices
{
    public partial class GestionHotel:IHotel
    {
        private Type_Item_Facture _itemFact;
        public int AddTypeItemFacture(Type_Item_Facture tif)
        {
            int res = -1;
            try
            {
                _itemFact = new Type_Item_Facture();
                _itemFact = tif;
                _itemFact.Ajouter();
                res = 1;

            }
            catch (Exception ex)
            {
                res = -1;
                //logger les erreurs
                throw ex;
            }

            return res;
        }

        public List<Type_Item_Facture> getListTypeItemFacture()
        {
            _itemFact = new Type_Item_Facture();
            return _itemFact.GetListeInstances();
        }

    }
}